PROJECT_ROOT := $(call my-dir)
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := libglory-0.1

# public headers directory
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
# private header paths
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src $(LOCAL_PATH)/src/android
LOCAL_SRC_FILES := \
	$(wildcard $(LOCAL_PATH)/src/*.c) \
	$(wildcard $(LOCAL_PATH)/src/android/*.c)
$(info $(LOCAL_SRC_FILES))

LOCAL_CFLAGS := -Wall -fdiagnostics-show-option -I$(LOCAL_PATH)/include

LOCAL_STATIC_LIBRARIES := android_native_app_glue
#LOCAL_SHARED_LIBRARIES := 
LOCAL_LDLIBS := -llog -landroid -lEGL -lGLESv2


#ifeq ($(TARGET_ARCH),arm)
#	LOCAL_CFLAGS += -DENABLE_ARM_SPECIFIC_MAGIC
#endif

include $(BUILD_SHARED_LIBRARY)
#include $(BUILD_STATIC_LIBRARY)

$(call import-module,android/native_app_glue)
